home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Software Contest 3
/
FM Towns Software Contest 3.iso
/
exp
/
video_t
/
no1
/
c_sorse
/
sound.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-01-07
|
4KB
|
195 lines
#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>
extern int Dialog_sound ;
extern int Message_009d ;
extern int _001Message_009d ;
extern int _002Message_009d ;
extern int DButton_00a3 ;
extern int sound_on() ;
extern int _001DButton_00a3 ;
extern int sound_off() ;
extern int Message_00a7 ;
extern int _001Message_00a7 ;
extern int NumBox_sound ;
extern int _002Message_00a7 ;
#define ALIGN 4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
/* MMI_init 用データ */
/* ヘッダ */
MMIINIT initDataSOUND = { "MmiInit", 10, 0 } ;
/* Dialog_sound */
static MMIPACKET d001 = { &Dialog_sound,
NULL,
&MJ_DIALOGL40,
OFFSET(DIALOGL40),
0
} ;
static DIALOGL40 d001d = { MS_BTLEFTL40 | MS_EVMOSONL40,
55, 44, 303, 227, 0, 7, 0,
MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
NULL, 0, 0
} ;
/* Message_009d */
static MMIPACKET d002 = { &Message_009d,
&Dialog_sound,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d002d = { MS_CENTERL40 | MS_DSPONLYL40,
63, 53, 296, 76, 0,15,12,
MS_NONEL40,
"音声データ再生",
2, 16, 16,
MS_NONEL40,
10, 0
} ;
/* _001Message_009d */
static MMIPACKET d003 = { &_001Message_009d,
&Dialog_sound,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d003d = { MS_CENTERL40 | MS_DSPONLYL40,
61, 83, 296, 106, 0,15, 0,
MS_NONEL40,
"音声データを再生するには、先に",
2, 16, 16,
MS_NONEL40,
0, 0
} ;
/* _002Message_009d */
static MMIPACKET d004 = { &_002Message_009d,
&Dialog_sound,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d004d = { MS_CENTERL40 | MS_DSPONLYL40,
59, 107, 293, 130, 0,15, 0,
MS_NONEL40,
"音声データを読み込んで下さい",
2, 16, 16,
MS_NONEL40,
0, 0
} ;
/* DButton_00a3 */
static MMIPACKET d005 = { &DButton_00a3,
&Dialog_sound,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d005d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
83, 185, 162, 210, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40 | MS_DEFAULTL40,
sound_on,
0x0000
} ;
/* _001DButton_00a3 */
static MMIPACKET d006 = { &_001DButton_00a3,
&Dialog_sound,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d006d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
194, 185, 273, 210, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40,
sound_off,
0x0000
} ;
/* Message_00a7 */
static MMIPACKET d007 = { &Message_00a7,
&Dialog_sound,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d007d = { MS_CENTERL40 | MS_DSPONLYL40,
84, 186, 159, 209, 0,15,15,
MS_NONEL40,
"確定",
2, 16, 16,
MS_NONEL40,
16, 0
} ;
/* _001Message_00a7 */
static MMIPACKET d008 = { &_001Message_00a7,
&Dialog_sound,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d008d = { MS_CENTERL40 | MS_DSPONLYL40,
194, 186, 270, 209, 0,15,15,
MS_NONEL40,
"取消",
2, 16, 16,
MS_NONEL40,
16, 0
} ;
/* NumBox_sound */
static MMIPACKET d009 = { &NumBox_sound,
&Dialog_sound,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
0
} ;
static NUMBOXL40 d009d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
236, 143, 272, 166, 0, 7,15,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0, 4, 1, 0,
263, 264
} ;
/* _002Message_00a7 */
static MMIPACKET d010 = { &_002Message_00a7,
&Dialog_sound,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d010d = { MS_CENTERL40 | MS_DSPONLYL40,
74, 143, 234, 166, 0,15,15,
MS_NONEL40,
"音声データ識別番号",
2, 16, 16,
MS_NONEL40,
0, 0
} ;